// 参数
@cr3 : #333;
@cr6 : #666;
@cr9 : #999;
@crf : #fff;

// 设置最大rem字号
@media screen and (min-width: 750px) {
    html {
        font-size: 75px !important;
    }
}

//body样式
body {
    min-width: 320px;
    width: 10rem;
    margin: 0 auto;
    background: #f6f6f6;
    line-height: 1.5;
    font-family: Arial, Helvetica, STHeiTi, sans-serif;
}
h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0;
    padding: 0;
}
ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
    color: #333;
}

//web-top部分
.web-top {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 10rem;
    height: 1.2rem;
    background: #262626;
    font-size: 0.373333rem;
    color: @crf;
    text-align: center;
    z-index: 1;
    & li:nth-child(1) {
        width: 0.8rem;
        height: 1.2rem;
        background: url(../images/close.png) no-repeat center center;
        background-size: 0.266667rem auto;
    }
    & li:nth-child(2) {
        width: 1rem;
        height: 1.2rem;
        background: url(../images/logo1.png) no-repeat center center;
        background-size: 0.8rem auto;
    }
    & li:nth-child(3) {
        flex: 1;
    }
    & li:nth-child(4) {
        width: 2.506667rem;
        height: 1.2rem;
        background: #f11d13;
        line-height: 1.2rem;
    }
}

//header部分
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 10rem;
    height: 1.173333rem;
    margin-top: 1.2rem;
    font-size: 0.373333rem;
    color: @crf;
    z-index: 1;
    & span:nth-child(1) {
        width: 1.066667rem;
        height: 1.173333rem;
        background: url(../images/fl.png) no-repeat 0.373333rem 0.4rem;
        background-size: 0.533333rem 0.48rem;
    }
    .search {
        position: relative;
        width: 7.28rem;
        height: 0.8rem;
        border-radius: 0.4rem;
        background: #fff;
        overflow: hidden;
        & span:nth-child(1) {
            position: absolute;
            top: 0;
            left: 0;
            width: 0.533333rem;
            height: 0.4rem;
            margin: 0.213333rem 0.213333rem 0 0.4rem;
            background: url(../images/logo2.png) no-repeat 0 0;
            background-size: 0.533333rem auto;
            &::after {
                position: absolute;
                top: 0;
                left: 0.8rem;
                content: '';
                width: 1px;
                height: 0.4rem;
                background: #cccccc;
            }
        }
        & span:nth-child(2) {
            position: absolute;
            top: 0.213333rem;
            left: 1.28rem;
            width: 0.48rem;
            height: 0.4rem;
            background: url(../images/jd-sprites.png) no-repeat -80px 0;
            background-size: 200px auto;
        }
        input {
            width: 100%;
            height: 100%;
            padding: 0 0.266667rem 0 2.08rem;
            border: 0;
            box-sizing: border-box;
            font-size: 0.32rem;
        }
    }
    & span:nth-child(3) {
        width: 1.066667rem;
        height: 1.173333rem;
        line-height: 1.173333rem;
        text-align: left;
    }
}

//main部分
main {
    width: 10rem;
    margin: 1.2rem 0 1.333333rem;
    overflow: hidden;
    .banner {
        position: relative;
        width: 100%;
        height: 4.986667rem;
        & span:nth-child(1) {
            display: block;
            width: 15rem;
            height: 3.866667rem;
            margin-left: -25%;
            border-bottom-left-radius: 100%;
            border-bottom-right-radius: 100%;
            background-image: linear-gradient(0deg,#f1503b,#c82519 50%);
        }
        ul {
            position: absolute;
            top: 1.173333rem;
            left: 0.333333rem;
            width: 9.333333rem;
            height: 3.693333rem;
            border-radius: 0.266667rem;
            overflow: hidden;
            background: #cccccc;
            li {
                position: absolute;
                top: 0;
                left: 100%;
                width: 100%;
                height: 100%;
                a {
                    display: block;
                    width: 100%;
                    height: 100%;
                    img {
                        width: 100%;
                    }
                }
            }
            li.now {
                left: 0;
            } 
        }
        ol {
            position: absolute;
            bottom: 0.266667rem;
            left: 50%;
            width: 1.6rem;
            margin-left: -0.8rem;
            background: #000;
            li {
                float: left;
                width: 0.133333rem;
                height: 0.133333rem;
                margin-right: 0.133333rem;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.4);
            }
            li.now {
                background: red;
            }
        }
    }
    .banner-bottom {
        display: flex;
        width: 100%;
        a {
            display: block;
            width: 33.3333%;
            img {
                width: 100%;
            }
        }
        
    }
    .nav {
        position: relative;
        width: 100%;
        height: 4.32rem;
        font-size: 0.32rem;
        ul {
            display: flex;
            flex-wrap: wrap;
            position: absolute;
            top: 0;
            left: 110%;
            line-height: 0.48rem;
            li {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 20%;
                img:nth-child(1) {
                    width: 1.066667rem;
                    height: 1.066667rem;
                    margin: 0.266667rem 0.466667rem 0.16rem;
                }
            }
        }
        ul.now {
            left: 0;
        }
    }
    .new {
        display: flex;
        width: 100%;
        padding: 0 0.266667rem 0.266667rem;
        box-sizing: border-box;
        a {
            display: block;
            width: 50%;
            img {
                display: block;
                width: 100%;
            }
        }
    }
    .ssk {
        width: 100%;
        img {
            width: 100%;
        }
    }
    .mrg {
        width: 100%;
        & img:nth-child(1) {
            width: 100%;
        }
        ul {
            display: flex;
            flex-wrap: wrap;
            margin: 0 0.266667rem 0.266667rem;
            li {
                width: 25%;
                padding: 0.173333rem 0 0.133333rem 0.266667rem;
                border-right: 1px solid #f5f5f5;
                box-sizing: border-box;
                background: @crf;
                color: @cr3;
                & p:nth-child(1) {
                    font-size: 0.426667rem;
                    line-height: 0.586667rem;
                    font-weight: 700;
                    background: -webkit-linear-gradient(left,#FF2A2A,#F139D2);
                    background: linear-gradient(90deg, #FF2A2A,#F139D2);
                    -webkit-background-clip: text;
                    color: transparent;
                }
                & p:nth-child(2) {
                    font-size: 0.32rem;
                    line-height: 0.4rem;
                }
                img {
                    width: 1.6rem;
                    height: 1.6rem;
                }
            }
            & li:nth-child(n + 5) {
                border-top: 1px solid #f5f5f5;
            }
        }
    }
    .wntj {
        width: 100%;
        & img:nth-child(1) {
            width: 100%;
        }
        .list {
            display: flex;
            justify-content: space-between;
            margin: 0 0.266667rem 0.266667rem;
            li {
                width: 4.613333rem;
                padding-bottom: 0.666667rem;
                margin-bottom: 0.266667rem;
                background: @crf;
                border-radius: 0.266667rem;
                overflow: hidden;
                a {
                    display: block;
                    width: 100%;
                    img {
                        width: 100%;
                    }
                    & p:nth-child(2) {
                        padding: 0 0.106667rem;
                        margin: 0.133333rem 0;
                        box-sizing: border-box;
                        font-size: 0.373333rem;
                        line-height: 0.426667rem;
                        color: #1a1a1a;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;
                        overflow: hidden;
                    }
                    & p:nth-child(3) {
                        position: relative;
                        display: flex;
                        align-items: center;
                        height: 0.666667rem;
                        font-size: .346667rem;
                        line-height: 0.666667rem;
                        & span:nth-child(1) {
                            padding: 0 0.133333rem 0 0.106667rem;
                            color: #fa2c19;
                            font-weight: 700;
                            span {
                                padding: 0;
                                font-size: 0.426667rem;
                                line-height: 0.346667rem;
                            }
                        }
                        & span:nth-child(2) {
                            border: 1px solid  #fa2c19;
                            padding: 0 0.08rem;
                            font-size: 0.32rem;
                            line-height: 0.373333rem;
                            color: #fa2c19;
                            vertical-align: middle;
                        }
                        & span:nth-child(3) {
                            position: absolute;
                            right: -0.08rem;
                            top: 0.04rem;
                            padding: 0 0.133333rem;
                            border-radius: .55rem;
                            background: #f0f2f5;
                            font-size: 0.32rem;
                            line-height: 0.586667rem;
                        }
                    }
                }
            }
        }
    }
}

//footer部分
footer {
    position: fixed;
    bottom: 0;
    width: 10rem;
    height: 1.333333rem;
    background: @crf;
    ul {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
        li {
            width: 20%;
            img {
                display: block;
                width: 100%;
            }
        }
    }
}
